execute as @a[scores={MultiMenu=16220001}] run function skyblock:azr/info/guide_sub1
execute as @a[scores={MultiMenu=16220002}] run function skyblock:azr/info/guide_sub2
execute as @a[scores={MultiMenu=16220003}] run function skyblock:azr/info/guide_sub3
execute as @a[scores={MultiMenu=112}] run function skyblock:azr/midway_join
execute as @a[scores={MultiMenu=114}] run function skyblock:azr/info/toggle_money_remind
execute as @a[scores={MultiMenu=115}] run function skyblock:azr/info/menu
scoreboard players enable @a MultiMenu

execute if score isStarted Azr_system matches 0 run scoreboard players set @a[tag=azrPlayer] Azr_forceDeath 1
execute as @a[tag=azrPlayer,scores={Azr_forceDeath=1..}] at @s run function skyblock:azr/player_dead
execute as @a[tag=azrPlayer,scores={Azr_isDead=1..}] at @s run function skyblock:azr/player_dead
execute if score isStarted Azr_system matches 1 if entity @a[x=-79931,y=100,z=0,distance=0..1500] unless entity @a[tag=azrPlayer] run function skyblock:azr/endgame
execute if block -79933 39 -14 air if score isStarted Azr_system matches 0 if entity @a run function skyblock:azr/endgame

scoreboard players set @a Azr_isDead 0

execute if score gametick Azr_system matches 20.. run function skyblock:azr/core
execute if entity @a[tag=azrPlayer] run scoreboard players add gametick Azr_system 1